package com.soulmate.gateway.config;

import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.core.token.TokenService;

/**
 * @author huaiping
 */
@Configuration
@AllArgsConstructor
public class AuthorizationTokenConfig {
    private final TokenService tokenService;

    @Bean
    public TokenService tokenService() {
        return tokenService;
    }
}
